$(function () {
    var TABLE_EL = {
        URL : $(".table-data").attr("actionUrl"),

    }

    $(".table-data").DataTable({
        ajax: {
            url: "/sysUser/get",
            type: "POST",
            dataSrc: "data"
        },
        columnDefs: [{targets: 7,}],
        columns: [
            {data: "username", title: "用户名", sortable: false},
            {data: "nickname", title: "昵称", sortable: false},
            {data: "phone", title: "手机号", sortable: false},
            {data: "email", title: "邮箱", sortable: false},
            {data: "regTime", title: "注册时间", sortable: false},
            {data: "lastLoginTime", title: "最后登录时间", sortable: false},
            {data: "lastLoginIp", title: "最后登录IP", sortable: false},
            {data: "status", title: "状态", sortable: false, render: function (data, type, row) {return "正常";}},
            {data: "opt", title: "操作", sortable: false, render: function (data, type, row) {return "<></>"}}
        ]
    });
});
